package chat.model;
import java.net.*;
/**
 * The purpose of this class is to provide objects of username and IP address strings for 
 * other classes, via the methods ChatUser, InetAddress and getUsername()
 * @param InetAddress - the user's address
 * @param username - the username identifying the user.
 * @since October 2012
 * @author Tung Nguyen, Trung V Hoang, Rob Bernard, Justin Semmel 
 */
public class ChatUser {
	private InetAddress address;
	private String username;
	
	/**Constructors
	 * @param theAddress
	 * @param theUsername
	 */
	public ChatUser(InetAddress theAddress, String theUsername )
	{
		address = theAddress;
		username = theUsername;
	}
	
	/**
	 * @return the ip address of users
	 */
	public InetAddress getAddress()
	{
		return address;
	}
	
	/**
	 * @return the username
	 */
	public String getUsername()
	{
		return username;
	}
}
